* test/lisp/minibuffer-tests.el (completion-test--pcm-bug38458): New test
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Feb 2024 16:15:59 +0000 (11:15 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Feb 2024 16:15:59 +0000 (11:15 -0500)
test/lisp/minibuffer-tests.el

index 07c4dbc3197a219db4747925c761b592f957225f..c4a7de9e51f7bb337b0b5c50c5d5f3887eb2aac0 100644 (file)
                     'completions-first-difference)
            return pos))
 
+(ert-deftest completion-test--pcm-bug38458 ()
+  (should (equal (let ((completion-ignore-case t))
+                   (completion-pcm--merge-try '("tes" point "ing")
+                                              '("Testing" "testing")
+                                              "" ""))
+           '("testing" . 4))))
+
 (ert-deftest completion-pcm-test-1 ()
   ;; Point is at end, this does not match anything
   (should (null